function getContain() {
  return 1
}

async function getAsyncContent() {
  //return Promise.resolve().then(function(return 1){})
  return 1
}

function getPromise() {
  return Promise.resolve().then(function () {
    return new Promise((resolve, reject) => {
      resolve(1)
    })
  })

}


// async await 会被执行成什么样的
function test() {
  return Promise.resolve().then(function () {

    let a = 2
    let c = 1
    return getContent()

  }).then(() => {
    let d = 1
    return getPromise()

  }).then(() => {
    let e = 1
    return getAsyncContent()

  }).then(() => {
    return 2

  })


  // let a=2
  // let c=1
  // await getContent()
  // let d=1
  // await getPromise()
  // let e=1
  // await getAsyncContent()
  // return 2

}

test()